Introduction:

This sample uses Winspool method from windows to send and print data.

To obtain status of the printer, it uses StarIO from Star.



Before compiling Project1.vbp
---------------------------------------------------------------------------

1. Double click on the Project1.vbp file to open.

2. In the project area - double click the module StarIOPort.bas

3. Look under the Public Declare Function (please note there are    
   9 Public Delare Functions) and place full path of dll according to your
   PC. 

As you can see the current path is C:\VB6 and is written as

Public Declare Function ReadPort Lib "C:\\VB6\\starioport.dll" 

Be sure to change the path location according to the starioport.dll location on your PC.

Do the same for Public Declare Function WritePort Lib and so on.



Making Project1.exe 
---------------------------------------------------------------------------

The full path of the StarIOPort.dll is not required when making an executable. Be sure to place the StarIOPort.dll file along with the executable file.

Public Delare Fection should look as follows..

Public Declare Function ReadPort Lib "starioport.dll" 